#pragma once

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<assert.h>

typedef int SLDateType;

typedef struct SeqList
{
	SLDateType* arr;
	int size;
	int capacity;
}SL;

//SeqList Init & Destory
void SeqListInit(SL* psl); 
void SeqListDestory(SL* psl);
//SeqList Push | Front / Back
void SeqListFrontPush(SL* psl,SLDateType vimal);
void SeqListBackPush(SL* psl ,SLDateType vimal);
//SeqList Pop  | Front / Back
void SeqListFrontPop(SL* psl);
void SeqListBackPop(SL* psl);
//SeqList Print
void SeqListPrint(SL* psl);
//SeqList Insert / Delete
void SeqListInsert(SL* psl,int pos,SLDateType vimal);
void SeqListDelete(SL* psl,int pos);
//SeqList Find / remove
int SeqListFind(SL* psl,SLDateType x);
void SeqListModify(SL* psl,int pos,SLDateType new_vimal);
